package Algorithm.Search.BasicSearch;

public class BasicSearchNoRepetition {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        System.out.println(basicSearch(arr, 10));
        System.out.println(basicSearch(arr, 20));
    }
    public static boolean basicSearch(int[] arr, int target){
        for(int i : arr)
            if(target == i)
                return true;
        return false;
    }
}
